<%include file="header.html"%>
<%include file="top.html"%>
<%include file="left.html"%>



				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="#">Bucket管理</a>
							</li>
							<li>
								<a href="#">浏览Bucket</a>
							</li>
						</ul><!-- .breadcrumb -->
					</div>

						<div class="page-content">

							<div class="row">
								<div class="col-xs-12">
									<!-- PAGE CONTENT BEGINS -->

									<div class="alert alert-info">
										<i class="icon-hand-right"></i>

										<strong class="red">请注意：</strong><i class="icon-pencil bigger-120"></i> 为编辑，<i class="icon-trash bigger-120"></i> 为删除
										<button class="close" data-dismiss="alert">
											<i class="icon-remove"></i>
										</button>
									</div>
									<div class="table-header">bucket列表&nbsp;&nbsp;&nbsp;&nbsp;  
									<a style="display:none" id="mkBucket" class="white" href="index.php?mod=Bucket&do=addBucket" >
																创建bucket
									</a>
									
									<%if $manageBucket && $manageBucket == 1%>
									<button class="btn btn-primary" onclick="document.getElementById('mkBucket').click();return false;">
								<!-- 	<a class="white" href="index.php?mod=Bucket&do=addBucket" >  -->
																创建bucket
								<!-- 	</a>  -->
									</button>
									<%/if%>
									</div>

									<div class="table-responsive">
										<table id="sample-table-1" class="table table-striped table-bordered table-hover">
											<thead>
												<tr>
													<th style="width:10%;">名称</th>
													<th>项目</th>
													<th>创建时间</th>
													<th style="width:20%;">操作</th>
												</tr>
											</thead>

											<tbody>
											<%if $bucketList%>
											<%foreach from = $bucketList key = userId item = bucketList%>
												<tr>
													
													<td>
													<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
														<a  href="index.php?mod=Bucket&do=getFileList&bucket_id=<%$bucketList.bucket_id%>&parentNodeId=0" >
														<i class="icon-folder-close-alt bigger-130"></i> <%$bucketList.bucket_name%>
														</a>
													</div>
													</td>
													
													<td><%$bucketList.bucket_project%></td>
													<td><%$bucketList.create_time%></td>
	
													<td>
														<%if $manageBucket && $manageBucket == 1%>
														<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
														<!--  关闭改名
														 	<a class="green" href="index.php?mod=Bucket&do=editBucket&bucket_id=<%$bucketList.bucket_id%>" >
																<i class="icon-pencil bigger-130"></i>&nbsp;修改
															</a>
                                                         -->     
																			
															<a class="red" href="javascript:if(confirm('确认删除吗?'))window.location='index.php?mod=Bucket&do=deleteBucket&bucket_id=<%$bucketList.bucket_id%>'" >
																<i class="icon-trash bigger-130"></i>&nbsp;删除
															</a>
														</div>
														<div class="visible-xs visible-sm hidden-md hidden-lg">
															<div class="inline position-relative">
																<button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
																	<i class="icon-caret-down icon-only bigger-120"></i>
																</button>

																<ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
																	<li>
																		<a href="javascript:void(0);" class="tooltip-success" data-rel="tooltip" title="" data-original-title="Edit">
																			<span class="green">
																				<i class="icon-edit bigger-120"></i>
																			</span>
																		</a>
																	</li>

																	<li>
																		<a href="javascript:void(0);" class="tooltip-error" data-rel="tooltip" title="" data-original-title="Delete">
																			<span class="red">
																				<i class="icon-trash bigger-120"></i>
																			</span>
																		</a>
																	</li>
																</ul>
															</div>
														</div>
														<%/if%>
													</td>
												</tr>
												<%/foreach%>
												<%/if%>
											</tbody>
										</table>
										<%if $msg%>
											<%$msg%>
										<%/if%>
									</div><!-- /.table-responsive -->
								</div>
							</div><!-- /.row -->
					</div><!-- /.page-content -->
				</div><!-- /.main-content -->
			
<%include file="footer.html"%>

